home *** CD-ROM | disk | FTP | other *** search
/ Sky at Night 2007 June / SAN CD 6-2007 CD-ROM 25.iso / pc / Software / AstroGrav_Win / Java / jre1.6.0 / lib / rt.jar / sun / management / HotspotRuntime.class (.txt) < prev    next >
Encoding:
Java Class File  |  2006-11-29  |  1.1 KB  |  35 lines

  1. package sun.management;
  2.  
  3. import java.util.List;
  4.  
  5. class HotspotRuntime implements HotspotRuntimeMBean {
  6.    private VMManagement jvm;
  7.    private static final String JAVA_RT = "java.rt.";
  8.    private static final String COM_SUN_RT = "com.sun.rt.";
  9.    private static final String SUN_RT = "sun.rt.";
  10.    private static final String JAVA_PROPERTY = "java.property.";
  11.    private static final String COM_SUN_PROPERTY = "com.sun.property.";
  12.    private static final String SUN_PROPERTY = "sun.property.";
  13.    private static final String RT_COUNTER_NAME_PATTERN = "java.rt.|com.sun.rt.|sun.rt.|java.property.|com.sun.property.|sun.property.";
  14.  
  15.    HotspotRuntime(VMManagement var1) {
  16.       this.jvm = var1;
  17.    }
  18.  
  19.    public long getSafepointCount() {
  20.       return this.jvm.getSafepointCount();
  21.    }
  22.  
  23.    public long getTotalSafepointTime() {
  24.       return this.jvm.getTotalSafepointTime();
  25.    }
  26.  
  27.    public long getSafepointSyncTime() {
  28.       return this.jvm.getSafepointSyncTime();
  29.    }
  30.  
  31.    public List getInternalRuntimeCounters() {
  32.       return this.jvm.getInternalCounters("java.rt.|com.sun.rt.|sun.rt.|java.property.|com.sun.property.|sun.property.");
  33.    }
  34. }
  35.